package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.MyMoney;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyMoneyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MyMoney record);

    MyMoney selectByPrimaryKey(Long id);

    List<MyMoney> selectAll();

    int updateByPrimaryKey(MyMoney record);

    MyMoney selectByUserId(Long userId);

    void updataByUserId(@Param("userId") Long userId, @Param("rmb") Integer rmb);

    void addmoneysUpdataByUserId(@Param("userId")Long userId,  @Param("rmb")Integer rmb);
}